﻿using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace _基础练习
{
    class Program
    {
        static void Main(string[] args)
        {
            //string a = "1";
            //int b = 2;
            //add(a);
            //add(b);
            //Console.WriteLine(a);
            //Console.WriteLine(b);
            Hashtable ht = new Hashtable();
            ht["Name"] = "张三";
            ht["Age"] = 18;
            string str = string.Empty;
            foreach (var htKey in ht.Keys)
            {
                str += htKey.ToString() + "=" + ht[htKey].ToString() + ",";
            }

            //BaseMethon<Person> person = new BaseMethon<Person>();
            //person.ConsoleWrith(new Person());

            Console.ReadKey();

        }

        public static void add(string s)
        {
            s = s + 1;
        }

        public static void add(int i)
        {
            i = i + 1;
        }
    }

    public class Person
    {
        public int Id { get; set; }
    }

    public class BaseMethon<T> where T : class, new()
    {
        public void ConsoleWrith(T t)
        {
            Console.WriteLine(typeof(T).Name);
        }
    }
}
